package com.student.service;

import com.student.dao.ClassesMapper;
import com.student.pojo.Classes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author 是一个鸽子啊
 * @date 2020/4/14
 * @qq 364826415
 */
@Service
public class ClassesServiceImpl implements ClassesService {
    private ClassesMapper classesMapper;
    @Autowired
    public void setClassesMapper(ClassesMapper classesMapper) {
        this.classesMapper = classesMapper;
    }

    @Override
    public Classes queryClassesByID(int classID) {
        return classesMapper.queryClassesByID(classID);
    }

    @Override
    public List<Classes> queryClasses() {
        return classesMapper.queryClasses();
    }

    @Override
    public List<Classes> queryClassesByClassName(String className) {
        return classesMapper.queryClassesByClassName(className);
    }

    @Override
    public int addClasses(Classes classes) {
        return classesMapper.addClasses(classes);
    }

    @Override
    public int delClasses(int classID) {
        return classesMapper.delClasses(classID);
    }

    @Override
    public int updateClasses(Classes classes) {
        return classesMapper.updateClasses(classes);
    }
}
